package com.runchen.broadcastdetection.mvp.home;

import com.runchen.broadcastdetection.entity.DeviceInfo;
import com.ruochen.common.base.BasePage;
import com.ruochen.common.base.BaseView;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @Description 登录 MVP Covenant
 * @Auth RuoChen
 * @Date 04/04/2021, 14:20
 **/
public interface MainCovenant {

    interface MvpView extends BaseView {
        void onGetDeviceListSuccess(BasePage<DeviceInfo> devicePage);

        void onGetDeviceListFailure(int code, String msg);
    }

    interface MvpStores {
        @GET("back/multifunctional/list")
        Observable<BasePage<DeviceInfo>> getDeviceList(
                @Query("deviceProvinceId") String deviceProvinceId,
                @Query("deviceCityId") String deviceCityId,
                @Query("deviceZoneId") String deviceZoneId,
                @Query("signBj") int signBj,
                @Query("deviceNumName") String deviceNumName);
    }

    interface Presenter {
        void getDeviceList();

    }

}